<template>
    <view class="box">
  <!--      <view class="name">
            <view class="">实名认证</view>
            <wd-icon name="arrow-right" color="#666" size="22px"></wd-icon>
        </view> -->
        <view class="name" @click="lookList(item.id)" v-for="(item,index) in list">
			<view class="info">
				<image :src="item.logo" mode="" class="logo"></image>
				<view class="">{{item.name}}</view>
			</view>
            
			<!-- <view class="">业绩详情</view> -->
            <!-- <wd-icon name="arrow-right" color="#666" size="22px"></wd-icon> -->
        </view>
        <!-- <view class="name" @click="toMys">
            <view class="">关于我们</view>
            <wd-icon name="arrow-right" color="#666" size="22px"></wd-icon>
        </view> -->
    </view>
</template>

<script setup>
import { user, shopNum } from '@/api/index.js';
import { utils } from '@/utils/utils.js';
import { onLoad, onShow } from '@dcloudio/uni-app';
import { ref } from 'vue';
const list = ref([])
// 跳转关于我们
onLoad(() => {
   getShopNum();
});
const toMys = () => {
    uni.navigateTo({
        url: '/pages/sub/aboutMys'
    });
};
const getShopNum = async ()=>{
	const ret = await shopNum();
	if (ret.code == 1) {
	  console.log(ret.data)
	  list.value = ret.data
		// this.drawCharts('bwrAvTqHshAAtpvzHkmFEyMKhBgYhhqh', ret.data);
	} else {
		utils();
	}
};
// 跳转
const lookList = (e) => {
	console.log(e)
	uni.navigateTo({
		url:'/pages/sub/shangwuShop/shopOrder?id='+e
	})
};
</script>

<style lang="scss" scoped>
.box {
	.name {
	    height: 108rpx;
	    display: flex;
	    align-items: center;
		justify-content: space-between;
	    background-color: #fff;
	    padding: 32rpx;
	    margin-bottom: 12rpx;
	    color: #666;
		.info{
			display: flex;
			align-items: center;
			.logo{
				width: 50rpx;
				height: 50rpx;
				border-radius: 50%;
				margin:  0 20rpx 0  0;
			}
			
		}
	}
	
   
    min-height: 100vh;
    padding-top: 12rpx;
    background-color: #f5f5f5;
}
</style>
